#include <iostream>
#include <string>

using namespace std;

int main()
{
	int tmp;
	
	cout << "How many car do you wish to catalog?"; (cin >> tmp).get();
	
	int *year = new int[tmp];
	string *maker = new string[tmp];
	
	for(int i=0; i<tmp; i++)
	{
		cout << "Car " << "#" << i+1 << ":\n";
		cout << "Please enter the maker: "; getline(cin, maker[i]);
		cout << "Please enter the year made: "; (cin >> year[i]).get();		// can NOT place this line after the line beblow
	}
	
	cout << "Here is your collection:\n";
	for(int i = 0; i < tmp; i++)
	{
		cout << year[i] << "\t" << maker[i] << endl;
	}
	
	delete [] year;
	delete [] maker;
	
	return 0;
}
